﻿namespace EyeOpen.Security.Server.BootStrapper
{
    using EyeOpen.Dependency;
    using EyeOpen.Security.Data;

    public class SecurityDataContextFactory : ISecurityDataContextFactory
    {
        public ISecurityDataContext CreateDataContext()
        {
            DependencyContainerService
                .Configure<SecurityContainerConfigurator>();

            var securityDataContext = 
                DependencyContainerService
                    .Instance
                    .Resolve<ISecurityDataContext>();

            return securityDataContext;
        }
    }
}